<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>设置_frm</title>
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <style type="text/css">
    body { background: #f7f9f8;}
    .aui-card {
        margin-top: 15px;
    }
    </style>
</head>
<body>
    <div class="aui-card">
        <ul class="aui-list-view">
            <li class="aui-list-view-cell" tapmode onclick="clearCache();">
                <a class="aui-arrow-right">清除缓存</a>
            </li>
            <li class="aui-list-view-cell" tapmode onclick="setFontSize();">
                <a class="aui-arrow-right">字体大小</a>
            </li>
            <li class="aui-list-view-cell">
                <a class="aui-arrow-right">意见反馈</a>
            </li>
            <li class="aui-list-view-cell">
                <a class="aui-arrow-right">关于</a>
            </li>
        </ul>
    </div>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript">
    apiready = function(){
		
    };
    
	// 清除缓存
	function clearCache(){
		api.confirm({
		    title: '提示',
		    msg: '确定要清除缓存的图片和文件？',
		    buttons:['确定', '取消']
		},function(ret,err){
		    if(ret.buttonIndex == 1){
		        api.clearCache();
				api.toast({
				    msg: '清理完成',
				    duration:2000,
				    location: 'middle'
				});
		    }
		});
	}
	
	// 正文大小
	function setFontSize(){
	    api.openWin({
	        name: 'font_size_win',
	        url: 'font_size_win.html',
	    });
	}
</script>
</html>